<template>
  <div>
    <h1>App</h1>


    <ul>
      <li v-for=" ro in routes">
        <router-link :to="{ name: ro.name }"> <font-awesome-icon :icon="ro.meta.icon" /> {{ ro.meta.label
        }} {{ ro.meta.auth }}</router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  computed: {
    routes() {
      return this.$router.options.routes.filter(el => el.meta.hidden !== true);
    }
  },
}
</script>
<style>
div {
  border: solid;
  padding: 10px;
}
</style>